package com.fymxy.question_bank_management.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fymxy.question_bank_management.pojo.Problem;
import com.fymxy.question_bank_management.pojo.Problem;
import com.fymxy.question_bank_management.pojo.ProblemWithBLOBs;

import java.util.List;

public interface ProblemService {
    int addProblem(ProblemWithBLOBs problem);
    IPage<ProblemWithBLOBs> selectAllProblem(Page page);
    IPage<ProblemWithBLOBs> selectByKeyword(Page page,String keyword,String level,String type,String point);
    int deleteProblemById(Integer id);
    int updateProblemById(ProblemWithBLOBs record);
    int getTopProblemNo();
    ProblemWithBLOBs selectById(Integer id);
    List<ProblemWithBLOBs> selectByPaper(Integer paperId);
    List<ProblemWithBLOBs> selectProblemByPaper(Integer paperNo);

    Problem selectByProblemNo(Integer problemNo);

    ProblemWithBLOBs selectAllByProblemNo(Integer problemNo);
}
